package ru.beta2.testyard.engine.points;

import ru.beta2.testyard.engine.HotspotEvent;
import ru.beta2.testyard.engine.ScriptPoint;

/**
 * User: Inc
 * Date: 19.06.2008
 * Time: 1:54:30
 */
public class ExpectPoint extends ScriptPoint
{

    private final HotspotEvent expectedEvent;

    public ExpectPoint(HotspotEvent expectedEvent)
    {
        this.expectedEvent = expectedEvent;
    }

    public void exec()
    {
        expectations().expectEvent(expectedEvent, this);
    }
}
